package com.airport.ticket.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class OrderInfo implements Serializable {
    private Integer id;

    private Integer userId;

    private Integer flightId;

    private String status;
    
    private String flightNumber;

    private String flightCompany;

    private String flightModel;

    private String departurePlace;

    private String arrivalPlace;

    private String departureAirport;

    private String arrivalAirport;

    private String departureTime;

    private String departureDate;

    private Date beginDepartureDate;

    private Date endDepartureDate;

    private String arrivalTime;

    private BigDecimal price;

    private Date createTime;

    private static final long serialVersionUID = 1L;

    public OrderInfo(Integer id, Integer userId, Integer flightId, String status, Date createTime) {
        this.id = id;
        this.userId = userId;
        this.flightId = flightId;
        this.status = status;
        this.createTime = createTime;
    }
    
    public OrderInfo(Integer id, Integer userId, Integer flightId, String status, String flightNumber, String flightCompany, String flightModel, String departurePlace, String arrivalPlace, String departureAirport, String arrivalAirport, String departureTime, String arrivalTime, BigDecimal price, Date createTime) {
        this.id = id;
        this.userId = userId;
        this.flightId = flightId;
        this.status = status;
        this.flightNumber = flightNumber;
        this.flightCompany = flightCompany;
        this.flightModel = flightModel;
        this.departurePlace = departurePlace;
        this.arrivalPlace = arrivalPlace;
        this.departureAirport = departureAirport;
        this.arrivalAirport = arrivalAirport;
        this.departureTime = departureTime;
        this.arrivalTime = arrivalTime;
        this.price = price;
        this.createTime = createTime;
    }
    
    public OrderInfo() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getFlightId() {
        return flightId;
    }

    public void setFlightId(Integer flightId) {
        this.flightId = flightId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    

    public String getFlightNumber() {
		return flightNumber;
	}

	public void setFlightNumber(String flightNumber) {
		this.flightNumber = flightNumber;
	}

	public String getFlightCompany() {
		return flightCompany;
	}

	public void setFlightCompany(String flightCompany) {
		this.flightCompany = flightCompany;
	}

	public String getFlightModel() {
		return flightModel;
	}

	public void setFlightModel(String flightModel) {
		this.flightModel = flightModel;
	}

	public String getDeparturePlace() {
		return departurePlace;
	}

	public void setDeparturePlace(String departurePlace) {
		this.departurePlace = departurePlace;
	}

	public String getArrivalPlace() {
		return arrivalPlace;
	}

	public void setArrivalPlace(String arrivalPlace) {
		this.arrivalPlace = arrivalPlace;
	}

	public String getDepartureAirport() {
		return departureAirport;
	}

	public void setDepartureAirport(String departureAirport) {
		this.departureAirport = departureAirport;
	}

	public String getArrivalAirport() {
		return arrivalAirport;
	}

	public void setArrivalAirport(String arrivalAirport) {
		this.arrivalAirport = arrivalAirport;
	}

	public String getDepartureTime() {
		return departureTime;
	}

	public void setDepartureTime(String departureTime) {
		this.departureTime = departureTime;
	}

	public String getArrivalTime() {
		return arrivalTime;
	}

	public void setArrivalTime(String arrivalTime) {
		this.arrivalTime = arrivalTime;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}


	public Date getBeginDepartureDate() {
		return beginDepartureDate;
	}

	public void setBeginDepartureDate(Date beginDepartureDate) {
		this.beginDepartureDate = beginDepartureDate;
	}

	public Date getEndDepartureDate() {
		return endDepartureDate;
	}

	public void setEndDepartureDate(Date endDepartureDate) {
		this.endDepartureDate = endDepartureDate;
	}
	
	

	public String getDepartureDate() {
		return departureDate;
	}

	public void setDepartureDate(String departureDate) {
		this.departureDate = departureDate;
	}

	@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", flightId=").append(flightId);
        sb.append(", status=").append(status);
        sb.append(", createTime=").append(createTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}